<?php
/**
 * Created by PhpStorm.
 * User: lzy
 * Date: 2018/11/7
 * Time: 9:51
 */
namespace App\FreeBird\Contracts;
/**
 * 分类信息
 * Interface InfoInterface
 * @package App\FreeBird\Contracts
 */
interface  InfoInterface{

    /**
     * 保存数据
     * @param $data
     * @return mixed
     */
   public function saveData($data);

    /**
     * 保存支付
     * @param $data
     * @return mixed
     */
   public function saveDataPay($data);

    /**
     * 获取订单列表
     * @param $where
     * @return mixed
     */
   public function getOrderInfoListLimit($where);


    /**
     * 给完成订单进行评论
     * @param $data
     * @return mixed
     */
   public function setOrderInfoComment($data);

    /**
     * 获取列表
     * @param $where
     * @return mixed
     */
    public function getList($where);

    /**
     * 后台获取订单列表
     * @param $where
     * @return mixed
     */
    public function getListAdmin($where);

    /**
     * 支付订单
     * @param $data
     * @return mixed
     */
    public function getPayOrder($data);

    /**
     * 支付完成后通知
     * @param $xml
     * @return mixed
     */
    public function payNotify($xml);

    /**
     * 修改订单审核状态
     * @param $where
     * @param $data
     * @return mixed
     */
    public function updateUserInfoApply($where,$data);

    /**
     * 取消订单
     * @param $where 条件
     * @return mixed
     */
    public function cancelOrder($where);


    /**
     * 用户接单
     * @param $where
     * @return mixed
     */
    public function acceptOrder($where);


    /**
     * 取消接单
     * @param $where
     * @return mixed
     */
    public function cancelAccept($where);
    /**
     * 拒绝按钮
     * @param $where
     * @return mixed
     */
    public function refuseOrder($where);

    /**
     * 同意按钮
     * @param $where
     * @return mixed
     */
    public function agreeOrder($where);
    /**
     * 退单按钮
     */
    public function backOrder($where);

    /**
     * 打赏
     * @param $where
     * @return mixed
     */
    public function rewardOrder($where,$mount);

    /**
     *  完成按钮－－－在已接单状态30
     * @param $where
     * @return mixed
     */
    public function completionOrder($where);


    /**
     * 放弃订单  ---入驻会员
     * @param $where
     * @return mixed
     */
    public function giveupOrder($where);


    /**
     * 关闭订单
     * @param $where
     * @return mixed
     */
    public function closeOrder($where);

    /**
     * 发起投诉
     * @param $where
     * @return mixed
     */
    public function complaintOrder($where,$data);


    /**
     * 订单申诉
     * @param $where
     * @param $data
     * @return mixed
     */
    public function appealOrder($where,$data);

    /**
     * 确认完成订单
     * @param $where
     * @return mixed
     */
    public function confirmationCompletedOrder($where);

    /**
     * 根据订单获取id
     * @param $id
     * @return mixed
     */
    public function getInfoMemberById($id);


    /**
     * 订单是否存在
     * @param $where
     * @return mixed
     */
    public function exitsOrder($where);


}